import Mock from 'mockjs';

let resource = [{
		key: "/resource/info",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'data': {

				"STATUS": "SUCCESS",
				"DATA": {
					"resourceRecord": {
						"id": 16,
						"comment": "资料备注",
						"content": "上传的文件或图片路径"
					},
					"resource": {
						"id": 18,
						"source": "招聘网",
						"statu": "待回访",
						"ypzw": "Java",
						"csgz": "黑盒测试",
						"tdgsmc": "投递公司名称",
						"bz": "备注",
						"autor": 3,
						"studentId": 21,
						"cu": 3,
						"ct": "2021-07-01T11:47:46",
					},
					"student": {
						"id": 21,
						"name": "姓名7",
						"secId": "身份证ID",
						"secFrontUrl": "身份证正面",
						"secBackUrl": "身份证反面",
						"secHandleUrl": "身份证手持",
						"tel": "联系电话",
						"account": "银行账户",
						"accountTel": "银行预留电话",
						"address": "联系地址",
						"degree": "学历",
						"major": "专业",
						"graduate": "毕业院校",
						"birth": "1998-12-31 16:00:00",
						"graduateTime": "2021-05-31 16:00:00",
						"email": "邮件"
					},
					"reservationBackview": {
						"id": 9,
						"datetime": "1999-11-11 00:00:00"
					},
					"reservationInterview": {
						"id": 9,
						"datetime": "1999-11-11 00:00:00"
					}
				}



			}
		})
	},

	{
		key: "/resource/list",
		method: "get",
		data: () => {
			return Mock.mock({
				"STATUS": "SUCCESS",
				"data": {
					"STATUS": "SUCCESS",
					"DATA": {
						"pageInfo": {
							"total": 1,
							"size": 7,
							"totalPage": 1,
							"page": 1
						},
						"list|10": [{
							"resource": {
								"id": 16,
								"source": "招聘网",
								"statu": "待回访",
								"ypzw": "Java",
								"bz": "备注",
								"autor": 2,
								"cu": 1,
								"ct": "2021-07-01T11:47:13"
							},
							"student": {
								"id": 19,
								"name": "姓名5",
								"tel": "联系电话"
							},
							"reservationBackview": {
								"id": 7,
								"datetime": "1990-11-11 00:00:00"
							},
							"reservationInterview": {
								"id": 7,
								"datetime": "1990-11-11 00:00:00"
							}
						}]
					}
				}


			});
		}
	}, {
		key: "/resource",
		method: "delete",
		data: function () {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {"STATUS": "SUCCESS",},
			});
		}
	}, {
		key: "/resource",
		method: "put",
		data: function () {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {"STATUS": "SUCCESS",},
			});
		}
	}, {
		key: "/resource",
		method: "post",
		data: function () {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {"STATUS": "SUCCESS",},
			});
		}
	},
];

export default resource;